<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="https://ajax4jsf.dev.java.net/ajax"
	xmlns:rich="http://richfaces.ajax4jsf.org/rich"
	xmlns:ctg="http://www.crotouristguide.com/taglib">
<body>
<ui:composition>
	<ul id="zupanijeLinkPanel" class="menu clearfix">
		<li class="first">
			<f:subview rendered="#{!facesContext.externalContext.requestServletPath.endsWith('zupanija.seam')}">
				<h:outputLink
					value="#{application.contextPath}/guides/zupanije/zupanija.seam">
					<f:param name="idZupanije" value="#{param.idZupanije}"/>
					<f:param name="l" value="#{currentLang}"/>
					<f:param name="title" value="#{titleAction.getUrlTitle(zupanijaDetails)}"/>
					<h:outputText value="#{messages['label.overview']}" />
				</h:outputLink>
			</f:subview>
			<f:subview rendered="#{facesContext.externalContext.requestServletPath.endsWith('zupanija.seam')}">
				<h:outputText value="#{messages['label.overview']}" />
			</f:subview>			
			</li>
			<f:subview rendered="#{mjestaByZupanija.rowCount > 0}">
			<li>
				<f:subview rendered="#{!facesContext.externalContext.requestServletPath.endsWith('mjesta.seam')}">
					<h:outputLink
						value="#{application.contextPath}/guides/zupanije/mjesta.seam">
						<f:param name="idZupanije" value="#{param.idZupanije}"/>
						<f:param name="l" value="#{currentLang}"/>
						<f:param name="title" value="#{titleAction.getUrlTitle(zupanijaDetails)}"/>
						<h:outputText value="#{messages['label.places']}" />
					</h:outputLink>
				</f:subview>
				<f:subview rendered="#{facesContext.externalContext.requestServletPath.endsWith('mjesta.seam')}">
					<h:outputText value="#{messages['label.places']}" />
				</f:subview>				
			</li>
			</f:subview>
			<f:subview rendered="#{otociByZupanija.size() > 0}">
				<li>
				<f:subview rendered="#{!facesContext.externalContext.requestServletPath.endsWith('otoci.seam')}">
					<h:outputLink
						value="#{application.contextPath}/guides/zupanije/otoci.seam">
						<f:param name="idZupanije" value="#{param.idZupanije}"/>
						<f:param name="l" value="#{currentLang}"/>
						<f:param name="title" value="#{titleAction.getUrlTitle(zupanijaDetails)}"/>
						<h:outputText value="#{messages['label.islands']}" />
					</h:outputLink>
				</f:subview>
				<f:subview rendered="#{facesContext.externalContext.requestServletPath.endsWith('otoci.seam')}">
					<h:outputText value="#{messages['label.islands']}" />
				</f:subview>
				</li>
			</f:subview>			
			<ui:repeat value="#{tipoviObjekataByZupanija}" var="to">
				<li>
				<f:subview rendered="#{param.idTipaObjekta != to.idTipaObjekta}">
					<h:outputLink
						value="#{application.contextPath}/guides/zupanije/objekti.seam">
						<f:param name="idZupanije" value="#{param.idZupanije}"/>
						<f:param name="idTipaObjekta" value="#{to.idTipaObjekta}"/>
						<f:param name="l" value="#{currentLang}"/>
						<f:param name="title" value="#{titleAction.getUrlTitle(zupanijaDetails,to.idTipaObjekta)}"/>
						<h:outputText
							value="#{messages[stringUtil.merge(to.idTipaObjekta,'.plural')]}" />
					</h:outputLink>
				</f:subview>
				<f:subview rendered="#{param.idTipaObjekta == to.idTipaObjekta}">
					<h:outputText
						value="#{messages[stringUtil.merge(to.idTipaObjekta,'.plural')]}" />
				</f:subview>				
				</li>
			</ui:repeat>
		</ul>
</ui:composition>
</body>
</html>
